<template>
  <div id="app">
<!-- 
    <keep-alive>
      <router-view />
    </keep-alive> -->

  <!-- 缓存的页面 -->
  <keep-alive>
      <router-view v-if="$route.meta.keepAlive"></router-view>
  </keep-alive>
  
  <!-- 不缓存的页面 -->
  <router-view v-if="!$route.meta.keepAlive"></router-view>



  </div>
</template>

<script>

export default {
  created() {
    this.$store.commit('INIT_USER')

  }
}
</script>

<style>

</style>
